home *** CD-ROM | disk | FTP | other *** search
- Short: C Algorithm Demonstrator
- Author: Dave@roke.demon.co.uk
- Uploader: Dave@roke.demon.co.uk
- Version: V1.21
- Type: misc/edu
- Requires: 1MB Chip 1/2MB Other
-
- Readme - Calgor V1.21 - 23/3/96
-
- Introduction
-
- Calgor started life as third year University project (under the
- heading of Demonstrations of Computer Science). The primary goal
- being to create an environment where the user could learn about
- different algorithms and their design. It is based on two
- different learning strategies, that of drill and rote and
- learning through personal experimentation.
-
- You may use Calgor as is, The player comes with the following
- installed:-
-
- Demonstrations of While, Do While, For, If and Switch C program
- control statements. Array data structure example, Insertion,
- Selection, Bubble and Quick Sort Algorithms (all with .txt files
- explaining their mechanics).
-
- Or if you have a C compiler you can use it to animate your own C
- algorithms (See the Calgor Programming Manual for details).
-
- Requirements
-
- Calgor needs 1 MB chip ram, 1/2 MB Other Ram, Workbench 2.04+ and
- one out of the following fonts installed: helvetica 13, times
- 11, courier 11 or napsa 11. Calgor is run from Workbench,
-
- Running From Disk
-
- Double click on the Calgor Icon and the program will run. You
- may have to alter data/editor.dat to point at your favourite text
- viewer, default is set to "ed" (To do this just edit
- data/editor.dat with a text editor). If you are going to program
- your own C algorithms, you will need to copy the hold directory
- to your compilers header search path (The default directory used
- by Dice is Dinclude:).
-
- Installing Disk To Hard Drive
-
- Just copy the Disk "Cal" to the destination directory you
- want (by dragging the Disk Icon Cal over to the directory).
-
- Place in the s:user-startup an Assign, which assigns The Volume
- Cal: to the directory path leading to Calgor directory.
-
- E.g.
-
- I have copied Cal over to "Work:programming/" so the assign
- would be
-
- "Assign Cal: Work:programming/Cal"
-
- Reboot, then just double click on the Calgor Icon to run.
- Double click on the Calgor Icon and the program will run. You
- may have to alter Cal:data/editor.dat to point at your favourite
- text viewer, default is set to "ed" (To do this just edit
- data/editor.dat with a text editor).
-
- If you are going to program your own C algorithms, you will need
- to copy the hold directory to your compilers header search path
- (the default directory used by Dice is Dinclude:).
-
- Instructions For Use: Program, Menu
-
- Use the Function keys (F1-F5) to select the heading and the
- number keys (1-5) to select the options. Alternatively you can
- use the mouse and left click on either the function key graphic
- to select the heading, or the key graphic to select the option.
- Clicking on the exit box or pressing ESC will exit from the
- program.
-
- You may at any time press Left Amiga and M to flick through the
- different screens and hence get back to the workbench (This will
- have the affect of putting Calgor to sleep). To restore
- Calgor, go to the Workbench Menus and select the Tools
- "Restore_Calgor" Option.
-
- Keys: Menu:
-
- F1: Heading-Option Bank 1 Num Key 1 Option 1
- F2: Heading-Option Bank 2 Num Key 2 Option 2
- F3: Heading-Option Bank 3 Num Key 3 Option 3
- F4: Heading-Option Bank 4 Num Key 4 Option 4
- F5: Heading-Option Bank 5 Num Key 5 Option 5
-
- Left Amiga and M - Put Calgor to sleep.
-
- To play an animation
-
- The animation menu has six functions, Play, Fast Forward, Pause,
- Stop, Eject and Information, to initiate a function just click on
- their respective graphics or press the appropriate keys (see
- below).
-
- Keys, Animation Menu
-
- Num Key 1 - Play
- Num Key 2 - Fast Forward (Accumulative)
- Num Key 3 - Pause
- Num Key 4 - Stop
- Num Key 5 - Information
- ESC - Eject or Stop (Depends on if an animation is playing
- or not).
-
- The information function may only be accessed when the animation
- is paused or stopped and will cause the .txt file for that
- demonstration to be displayed via the text editor named in
- data/editor.dat.
-
- Specification
-
- This version of Calgor (V1.21) is limited in what it can do.
- Since I'm starting a whole new project, anyone wishing to further
- this one, may get into contact with me via Email.
-
- Calgor can model the behaviour of an integer array, maximum 10
- elements per program. Calgor can model 10 integer variables
- per function.
-
- The animation functions (see programming manual for specifics),
- use a limited parser to assess values. It can evaluate absolute
- number (10), variable (x), array with variable (a[x]), array
- with absolute offset (a[10]), or variable and integer offset
- (a[x+10]), however these are fixed in stone, a[b[9]] would not be
- evaluated properly.
-
- Calgor does not model structure or pointer behaviour.
-
- Errors
-
- If at anytime Calgor produces an error it will record it
- "CalLog". A more detailed error message may be produced if
- Calgor is run from the CLI.
-
- Bugs.
-
- 1). When using a hi-res intuition pointer (WB 3.0), Calgor
- doesn't display it's pointer correctly.
-
- 2). Using a 68030, with low memory, and datacaches enabled,
- the menu text sometimes corrupts. Calgor fixes this by switching
- off the datacaches (via the cpu command) when it starts. The
- datacaches are enabled when you exit from Calgor.
-
- To switch data caches off type (in a CLI):
- CPU nodatacache <RETURN>
- To switch data caches back on, type
- CPU datacache <RETURN>
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 1233 593 51.9% 23-Mar-96 17:16:44 Cal.info
- 1233 594 51.8% 22-Mar-96 18:13:56 +Algorithms.info
- 723 292 59.6% 21-Mar-96 17:38:12 +array.c
- 1405 462 67.1% 19-Mar-96 17:37:12 +bubble.c
- 987 300 69.6% 19-Mar-96 17:36:40 +do_while.c
- 1086 290 73.2% 19-Mar-96 17:36:08 +For.c
- 1680 439 73.8% 19-Mar-96 17:35:22 +if_else.c
- 1336 458 65.7% 19-Mar-96 17:34:26 +insertion.c
- 2182 625 71.3% 19-Mar-96 17:33:46 +quick.c
- 1550 498 67.8% 19-Mar-96 17:32:54 +selection.c
- 1346 363 73.0% 19-Mar-96 17:32:12 +switch.c
- 2189 630 71.2% 19-Mar-96 17:38:04 +user1.c
- 1389 591 57.4% 22-Mar-96 02:24:56 +user1.c.info
- 2187 629 71.2% 19-Mar-96 17:39:08 +user2.c
- 1389 592 57.3% 22-Mar-96 02:24:56 +user2.c.info
- 2189 631 71.1% 19-Mar-96 17:40:14 +user3.c
- 1389 591 57.4% 22-Mar-96 02:24:56 +user3.c.info
- 2189 630 71.2% 21-Mar-96 23:29:30 +user4.c
- 1389 593 57.3% 22-Mar-96 02:24:58 +user4.c.info
- 2189 630 71.2% 19-Mar-96 17:42:34 +user5.c
- 1389 591 57.4% 22-Mar-96 02:24:58 +user5.c.info
- 1028 294 71.4% 19-Mar-96 17:31:40 +while.c
- 1233 597 51.5% 22-Mar-96 18:13:56 +C.info
- 9020 5518 38.8% 22-Mar-96 02:48:00 +what
- 57720 28695 50.2% 22-Mar-96 18:41:24 +calgor
- 1585 739 53.3% 21-Mar-96 23:42:18 +calgor.dice
- 1436 861 40.0% 22-Mar-96 18:13:56 +calgor.dice.info
- 890 226 74.6% 22-Mar-96 18:42:56 +Calgor.info
- 15 15 0.0% 22-Mar-96 18:48:20 +CalLog
- 1499 580 61.3% 22-Mar-96 18:13:56 +CalLog.info
- 1233 598 51.5% 22-Mar-96 18:13:56 +CalSource.info
- 19319 4653 75.9% 22-Mar-96 00:27:38 +allanim.c
- 1181 495 58.0% 22-Mar-96 00:30:36 +control.c
- 3799 1244 67.2% 22-Mar-96 00:29:28 +filter.c
- 30534 7980 73.8% 22-Mar-96 18:40:58 +menus.c
- 6369 2212 65.2% 20-Mar-96 20:50:18 +mouse.c
- 524 299 42.9% 22-Mar-96 02:11:46 +ports.c
- 40536 10544 73.9% 22-Mar-96 00:26:10 +sysanim.c
- 1233 596 51.6% 22-Mar-96 18:13:56 +Data.info
- 80 57 28.7% 23-Apr-95 06:31:14 +Dem.dat
- 3 3 0.0% 21-Mar-96 20:29:54 +editor.dat
- 80 55 31.2% 20-Apr-95 23:04:04 +menu.dat
- 380 183 51.8% 11-Mar-96 15:12:26 +options.dat
- 20 15 25.0% 20-Apr-95 15:24:06 +pulse.dat
- 1648 1132 31.3% 22-Mar-96 03:22:54 +Disk.info
- 1233 593 51.9% 22-Mar-96 18:13:56 +Docs.info
- 133 113 15.0% 22-Mar-96 02:42:52 +Author
- 1499 581 61.2% 22-Mar-96 03:09:08 +Author.info
- 609 359 41.0% 23-Mar-96 17:11:20 +Legal
- 1499 582 61.1% 22-Mar-96 03:09:10 +Legal.info
- 11007 3567 67.5% 22-Mar-96 01:28:34 +Manual
- 1499 581 61.2% 22-Mar-96 03:09:06 +Manual.info
- 5262 2299 56.3% 23-Mar-96 17:13:24 +Readme
- 1499 579 61.3% 22-Mar-96 03:09:10 +Readme.info
- 444 261 41.2% 22-Mar-96 03:39:22 +What
- 1499 582 61.1% 22-Mar-96 03:09:08 +What.info
- 628 262 58.2% 22-Mar-96 18:13:56 +hold.info
- 1271 475 62.6% 22-Mar-96 00:31:28 +anim.h
- 1000 416 58.4% 22-Mar-96 00:32:38 +data.h
- 44 44 0.0% 22-Apr-95 03:07:28 +demmap.h
- 4631 1648 64.4% 22-Mar-96 16:54:56 +extra.h
- 588 164 72.1% 22-Mar-96 00:31:48 +funchead.h
- 1233 593 51.9% 22-Mar-96 18:13:56 +Pic.info
- 163840 1538 99.0% 30-Aug-95 21:51:42 +Dem2.pic
- 163840 1671 98.9% 09-May-95 02:03:10 +Dump.pic
- 163840 5734 96.5% 22-Mar-96 02:38:34 +MenuV1_21.pic
- 1233 594 51.8% 22-Mar-96 18:13:56 +Text.info
- 1821 797 56.2% 22-Mar-96 02:16:22 +Array.txt
- 1499 574 61.7% 22-Mar-96 02:27:26 +Array.txt.info
- 3020 900 70.1% 14-Mar-96 16:48:22 +Bubble.txt
- 1499 578 61.4% 22-Mar-96 02:27:14 +Bubble.txt.info
- 1646 468 71.5% 10-Feb-96 16:42:00 +Do_while.txt
- 1499 577 61.5% 22-Mar-96 02:27:12 +Do_while.txt.info
- 1973 544 72.4% 10-Feb-96 16:40:02 +For.txt
- 1499 579 61.3% 22-Mar-96 02:27:14 +For.txt.info
- 344 171 50.2% 21-Mar-96 20:31:16 +If_Else.txt
- 1499 578 61.4% 22-Mar-96 02:27:16 +If_Else.txt.info
- 2604 955 63.3% 14-Mar-96 16:47:54 +Insertion.txt
- 1499 578 61.4% 22-Mar-96 02:27:14 +Insertion.txt.info
- 5353 1655 69.0% 14-Mar-96 03:59:58 +Quick.txt
- 1499 578 61.4% 22-Mar-96 02:27:18 +Quick.txt.info
- 2415 810 66.4% 14-Mar-96 16:47:28 +Selection.txt
- 1499 578 61.4% 22-Mar-96 02:27:20 +Selection.txt.info
- 2523 637 74.7% 10-Feb-96 16:36:44 +Switch.txt
- 1499 577 61.5% 22-Mar-96 02:27:18 +Switch.txt.info
- 5362 1657 69.0% 22-Mar-96 17:42:12 +user1.txt
- 1499 578 61.4% 22-Mar-96 02:27:18 +user1.txt.info
- 5363 1657 69.1% 14-Mar-96 16:08:52 +User2.txt
- 1499 580 61.3% 22-Mar-96 02:27:22 +User2.txt.info
- 5362 1660 69.0% 14-Mar-96 16:13:10 +User3.txt
- 1499 578 61.4% 22-Mar-96 02:27:24 +User3.txt.info
- 5363 1657 69.1% 14-Mar-96 16:14:56 +User4.txt
- 1499 577 61.5% 22-Mar-96 02:27:24 +User4.txt.info
- 5362 1657 69.0% 22-Mar-96 17:44:26 +User5.txt
- 1499 576 61.5% 22-Mar-96 02:27:24 +User5.txt.info
- 1666 454 72.7% 10-Feb-96 16:36:26 +While.txt
- 1499 576 61.5% 22-Mar-96 02:27:22 +While.txt.info
- -------- ------- ----- --------- --------
- 815007 126190 84.5% 23-Mar-96 18:28:32 97 files
-